package com.sharelords.icp.web.constant;

/**
 * 返回码枚举项
 *
 * @author 夜舞旋
 */
public enum ReturnCodeEnum {

    SUCCESS(0, "ok"),
    FAILED(400, "失败"),
    ERROR(500, "异常"),
    ;

    private int returnCode;
    private String returnMsg;

    ReturnCodeEnum(int returnCode, String returnMsg) {
        this.returnCode = returnCode;
        this.returnMsg = returnMsg;
    }

    public int getReturnCode() {
        return returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }
}
